const { exec } = require('child_process');
export function shutdownWindow() {
  let command = exec('shutdown -s -t 00', function (err: any, stdout: any, stderr: any) {
    if (err || stderr) {
      console.log("shutdown failed" + err + stderr);
    }
  });
  command.stdin.end();
  command.on('close', function (code: any) {
    console.log("shutdown", code);
  });
}
